home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / archiver / scrnc102.zip / TESTW.BAT < prev   
DOS Batch File  |  1988-03-16  |  814b  |  31 lines

  1. echo off
  2. if %1x == x goto syntax
  3. if not exist %1.txt goto error1
  4. if not exist scrxw.stb goto error2
  5. if exist contents.doc goto cont1
  6. echo this file was created by testw.bat >contents.doc
  7. dir /w >>contents.doc
  8. :cont1
  9. copy scrxw.stb + %1.txt %1.bin
  10. scrnch /o /e:%1.bin contents.doc testexit.com
  11. testexit
  12. goto finish
  13. :syntax
  14. echo  
  15. echo Syntax
  16. echo    TESTW exitname
  17. echo  
  18. echo This .BAT file allows you to test a Write Mode exit.  The exit
  19. echo will  be  created  by  appending  exitname.TXT  to  the end of
  20. echo SCRXW.STB.  The result will be named exitname.BIN.   SCRNCH is
  21. echo used to add the exit to a program, then the program is called.
  22. echo  
  23. goto finish
  24. :error1
  25. echo ERROR: file %1.TXT not found.
  26. goto finish
  27. :error2
  28. echo ERROR: file SCRXW.STB not found.
  29. goto finish
  30. :finish
  31.